import os.path
import yaml


class TextUtil:
    @classmethod
    def read_value_yaml(cls, yaml_name):
        with open((os.path.dirname(os.path.dirname(__file__))) + os.sep + 'config' + os.sep + yaml_name, mode='r',
                  encoding='utf-8') as f:
            # value = yaml.safe_load(stream=f, Loader=yaml.FullLoader)
            value = yaml.safe_load(stream=f)

        return value
